package com.zzty.wja.controller;

import com.zzty.wja.entity.Clazz;
import com.zzty.wja.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/clazz")
public class ClazzController {
    @Autowired
    private ClazzService clazzService;


    @RequestMapping("/getAllClazz")
    public List getAllClazz(){
        List<Clazz> clazzes=clazzService.getAllClazz();
        return clazzes;
    }
}
